package org.example.book.mediator;

public abstract class AbstractCustomer {

    /**
     * 关联终结者对象
     */
    public AbstractMedicator medicator;

    /**
     * 订单id
     */
    public String orderId;
    /**
     * 当前用户名称
     */
    public String customerName;

    public AbstractCustomer(AbstractMedicator medicator, String orderId, String customerName) {
        this.medicator = medicator;
        this.orderId = orderId;
        this.customerName = customerName;
    }

    public String getCustomerName() {
        return customerName;
    }

    public abstract void messageTransfer(String orderId, String targerCustomer, String payResult);
}
